package com.example.testhiber.initPackage.business.utils;

import java.io.Serializable;

public class Result implements Serializable {
    private static final long serialVersionUID = -7419113236296271021L;
    private Boolean success;
    private String returnMsg;
    private Object data;

    public Result() {
    }

    public Result(Boolean success) {
        this.success = success;
    }

    public Result(Boolean success, String returnMsg) {
        this.success = success;
        this.returnMsg = returnMsg;
    }

    public Result(Boolean success, String returnMsg, Object data) {
        this.success = success;
        this.returnMsg = returnMsg;
        this.data = data;
    }

    public Boolean getSuccess() {
        return this.success;
    }

    public Result setSuccess(Boolean success) {
        this.success = success;
        return this;
    }

    public String getReturnMsg() {
        return this.returnMsg;
    }

    public Result setReturnMsg(String returnMsg) {
        this.returnMsg = returnMsg;
        return this;
    }

    public Object getData() {
        return this.data;
    }

    public Result setData(Object data) {
        this.data = data;
        return this;
    }
}
